package com.fast.framework.sys.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotBlank;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fast.common.core.base.entity.BaseEntity;


/**
 * 
 * @Description:公司表
 * @author ZhouHuan 18774995071@163.com
 * @time 2018-12-04 22:16

 *
 */
@TableName("sys_comp")
public class SysCompEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	// 公司ID
	@TableId
	private Long compId;

	// 上级公司ID，一级公司为0
	private Long parentId;

	// 上级部门名称
	@TableField(exist = false)
	private String parentName;

	// 排序
	private Integer orderNum;

	// 公司名称
	@NotBlank(message = "公司名称不能为空")
	private String name;


	private String status;

//	// 是否假删除-改变标志
//	@TableLogic
//	private Integer delFlag;

	/**
	 * ztree属性
	 */
	@TableField(exist = false)
	private Boolean open;
	@TableField(exist = false)
	private List<?> list;

	// 地区名称
	@TableField(exist = false)
	private String deptName;

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * 关联地区List
	 */
	@TableField(exist = false)
	private List<Long> deptIdList;


	public List<Long> getDeptIdList() {
		return deptIdList;
	}

	public void setDeptIdList(List<Long> deptIdList) {
		this.deptIdList = deptIdList;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public Long getCompId() {
		return compId;
	}

	public void setCompId(Long compId) {
		this.compId = compId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}


	public Boolean getOpen() {
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public List<?> getList() {
		return list;
	}

	public void setList(List<?> list) {
		this.list = list;
	}
}
